SeslProgressBar

SeslProgressBar is a base widget for visualizing and controlling progress, supporting both determinate and indeterminate modes.

Configurable functionalities (via XML attributes and/or public methods):

  • Progress Range:
    • Set minimum and maximum values using setMin, setMax, or the android:min and android:max XML attributes.
  • Progress Values:
  • Indeterminate Mode:
  • Progress Drawable:
  • Tinting:
  • Dimensions &Style:
    • Control size and appearance using android:minWidth, android:maxWidth, android:minHeight, android:maxHeight, and android:style attributes.
  • Accessibility:
    • Supports accessibility events and node info customization for assistive technologies.
  • Listener Support:

Common XML attributes:

  • android:min, android:max, android:progress, android:secondaryProgress
  • android:indeterminate, android:indeterminateDrawable, android:progressDrawable
  • android:progressTint, android:indeterminateTint
  • android:minWidth, android:maxWidth, android:minHeight, android:maxHeight

See also

Inheritors

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
Create a new progress bar with range 0...100 and initial progress of 0.
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Types

Link copied to clipboard
annotation class SeekBarMode
Samsung ProgressBar modes

Properties

Link copied to clipboard
val MODE_CIRCLE: Int = 7
Link copied to clipboard
Link copied to clipboard
val MODE_EXPAND: Int = 5
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val MODE_SPLIT: Int = 4
Link copied to clipboard
Link copied to clipboard
val MODE_WARNING: Int = 1

Functions

Link copied to clipboard
Link copied to clipboard
Returns the drawable currently used to draw the progress bar.
Link copied to clipboard
Get the drawable used to draw the progress bar in indeterminate mode.
Link copied to clipboard
Returns the blending mode used to apply the tint to the indeterminate drawable, if specified.
Link copied to clipboard
Gets the acceleration curve type for the indeterminate animation.
Link copied to clipboard
open fun getMax(): Int
Return the upper limit of this progress bar's range.
Link copied to clipboard
open fun getMaxHeight(): Int
Link copied to clipboard
open fun getMaxWidth(): Int
Link copied to clipboard
open fun getMin(): Int
Return the lower limit of this progress bar's range.
Link copied to clipboard
open fun getMinHeight(): Int
Link copied to clipboard
open fun getMinWidth(): Int
Link copied to clipboard
Link copied to clipboard
open fun getPaddingLeft(): Int
Link copied to clipboard
open fun getPaddingRight(): Int
Link copied to clipboard
open fun getProgress(): Int
Get the progress bar's current level of progress.
Link copied to clipboard
Returns the tint applied to the progress background, if specified.
Link copied to clipboard
Get the drawable used to draw the progress bar in progress mode.
Link copied to clipboard
Returns the tint applied to the progress drawable, if specified.
Link copied to clipboard
Returns the blending mode used to apply the tint to the progress drawable, if specified.
Link copied to clipboard
Get the progress bar's current level of secondary progress.
Link copied to clipboard
Returns the tint applied to the secondary progress drawable, if specified.
Link copied to clipboard
Returns the blending mode used to apply the tint to the secondary progress drawable, if specified.
Link copied to clipboard
Increase the progress bar's progress by the specified amount.
Link copied to clipboard
Increase the progress bar's secondary progress by the specified amount.
Link copied to clipboard
Link copied to clipboard
open fun isAnimating(): Boolean
Returns whether the ProgressBar is animating or not.
Link copied to clipboard
Indicate whether this progress bar is in indeterminate mode.
Link copied to clipboard
Link copied to clipboard
open fun onResolveDrawables(layoutDirection: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onVisibilityAggregated(isVisible: Boolean)
Link copied to clipboard
open fun postInvalidate()
Link copied to clipboard
open fun setIndeterminate(indeterminate: Boolean)
Change the indeterminate mode for this progress bar.
Link copied to clipboard
Define the drawable used to draw the progress bar in indeterminate mode.
Link copied to clipboard
Define the tileable drawable used to draw the progress bar in indeterminate mode.
Link copied to clipboard
Applies a tint to the indeterminate drawable.
Link copied to clipboard
Specifies the blending mode used to apply the tint specified by setIndeterminateTintList to the indeterminate drawable.
Link copied to clipboard
open fun setInterpolator(interpolator: Interpolator)
open fun setInterpolator(context: Context, @InterpolatorRes resID: Int)
Sets the acceleration curve for the indeterminate animation.
Link copied to clipboard
open fun setMax(max: Int)
Set the upper range of the progress bar max.
Link copied to clipboard
open fun setMaxHeight(@Px maxHeight: Int)
Sets the maximum height the progress bar can have.
Link copied to clipboard
open fun setMaxWidth(@Px maxWidth: Int)
Sets the maximum width the progress bar can have.
Link copied to clipboard
open fun setMin(min: Int)
Set the lower range of the progress bar to min.
Link copied to clipboard
open fun setMinHeight(@Px minHeight: Int)
Sets the minimum height the progress bar can have.
Link copied to clipboard
open fun setMinWidth(@Px minWidth: Int)
Sets the minimum width the progress bar can have.
Link copied to clipboard
open fun setMode(mode: Int)
Link copied to clipboard
open fun setProgress(progress: Int)
Sets the current progress to the specified value.
open fun setProgress(progress: Int, animate: Boolean)
Sets the current progress to the specified value, optionally animating the visual position between the current and target values.
Link copied to clipboard
Applies a tint to the progress background, if one exists.
Link copied to clipboard
Specifies the blending mode used to apply the tint specified by setProgressBackgroundTintList} to the progress background.
Link copied to clipboard
Define the drawable used to draw the progress bar in progress mode.
Link copied to clipboard
Define the tileable drawable used to draw the progress bar in progress mode.
Link copied to clipboard
Applies a tint to the progress indicator, if one exists, or to the entire progress drawable otherwise.
Link copied to clipboard
Specifies the blending mode used to apply the tint specified by setProgressTintList} to the progress indicator.
Link copied to clipboard
open fun setSecondaryProgress(secondaryProgress: Int)
Set the current secondary progress to the specified value.
Link copied to clipboard
Applies a tint to the secondary progress indicator, if one exists.
Link copied to clipboard
Specifies the blending mode used to apply the tint specified by setSecondaryProgressTintList} to the secondary progress indicator.